import vue from 'vue'
import vuex from 'vuex'

vue.use(vuex)

export default new vuex.Store({
	state: {
		h5audio: undefined,
		playingvideo: undefined,
		currentindex: undefined
	},
	mutations: {
		seth5audio(state, v) {
			state.h5audio = v
		},
		setplayingvideo(state, v) {
			state.playingvideo = v
		},
		setcurrentindex(state, v) {
			state.currentindex = v
		}
	}
})
